/*
 *  MTouchware_finitestatemachine.h
 *
 *  Header of MTouchware_control_receiver.c that monitors OSC messages
 *  received with from another application and modifies the mtouchware
 *  behaviour.
 *
 *  Copyright (C) 2010 LIMSI-CNRS (Orsay-France) and EFREI (Paris-France)
 *
 *  Authors: Rami Ajaj, Nicolas Flasque and Frederic Vernier.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as
 *  published by the Free Software Foundation; either version 2.1 of the
 *  License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  $Id$
 */

#ifndef _MTOUCHWARE_FINITE_STATE_MACHINE_H_
#define _MTOUCHWARE_FINITE_STATE_MACHINE_H_

typedef enum
{
        RAW_DATA,
        POSITION_FILTER
} t_status;

typedef struct s_transition
{
        void * (*onTransitionFiring)(void *);
        void * (*onTransitionFired) (void *);
} t_transition, *p_transition;

void fireTransition(p_transition p, void *user_data);



#endif // _MTOUCHWARE_FINITE_STATE_MACHINE_H_
